import request from "../../http";

// 获取培训列表
export function getTrainingList(params) {
  return request({
    url: '/mine/companytrain/notice/list',
    method: 'GET',
    params
  })
}

// 获取在线课程列表
export function getOnlineCourseList(params) {
  return request({
    url: '/mine/companytrain/online/list',
    method: 'GET',
    params
  })
}

// 获取培训通知详情
export function getTrainDetail(id) {
  return request({
    url: `/mine/companytrain/notice/detail/${id}`,
    method: 'GET'
  })
}

// 获取视频培训详情
export function getcomOnlineTrainDetail(id) {
  return request({
    url: `/mine/companytrain/online/detail/${id}`,
    method: 'GET'
  })
}

// 反馈
export function save(data) {
  return request({
    url: "/mine/companytrain/feedback",
    method: "POST",
    data
  });
}